import request from "@/utils/request.js";
import { v4 as uuidv4 } from 'uuid';
// 专家列表
export function getList(data) {
  return request({
    url: `/api/selectExpert/getExpertPageList`,
    method: 'post',
    data
  })
}
// 专家新增
export function addExpert(data) {
  return request({
    url: `/api/selectExpert/save`,
    method: 'post',
    data: { data, "rid": uuidv4() }
  })
}
export function todoPage(data) {
  return request({
    url: `/api/cxjlApplyItem/todoPage`,
    method: 'post',
    data
  })
}
export function detail(params) {
  return request({
    url: `/api/cxjlApplyItem/detail`,
    method: 'get',
    params
  })
}
export function audit(data) {
  return request({
    url: `/api/cxjlApplyItem/audit`,
    method: 'post',
    data
  })
}
export function downloadFile(id) {
  return request({
    url: `/api/cxjlApplyItem/download/${id}`,
    method: 'post',
    responseType: 'blob'
  })
}
